package org.itstack.demo.design;

import java.util.Date;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-25  19:33
 * @Description: auth 审核流程
 * queryAuthInfo 查询审核信息(时间)
 */
public class AuthService {
    private static Map<String, Date> authMap = new ConcurrentHashMap<>();

    public static Date queryAuthInfo(String uId,String orderId){
        return authMap.get(uId.concat(orderId));
    }

    public static void auth(String uId,String orderId){
        authMap.put(uId.concat(orderId),new Date());
    }
}
